//
//  PrintIPhoneInfo.swift
//  HSMainViewControllerHandler
//
//  Created by haisheng huang on 2016/9/21.
//  Copyright © 2016年 haisheng huang. All rights reserved.
//

import Foundation
import UIKit


@objc open class PrintIPhoneInfo: NSObject {
    
    static func printAllIPhoneInfo_class() -> Void {
        
        print("uniqueIdentifier: ", UIDevice.current.identifierForVendor!.uuidString)
        print("name: \(UIDevice.current.name)")
        print("systemName: \(UIDevice.current.systemName)")
        print("syttemVersion: \(UIDevice.current.systemVersion)")
        print("model: \(UIDevice.current.model)")
        print("model name: \(UIDevice.current.modelName)")
        print("model modelIdentifier: \(UIDevice.current.modelIdentifier)")
        print("localizedModel: \(UIDevice.current.localizedModel)")
        
        
        let infoDictionary = Bundle.main.infoDictionary!
        
        //print("infoDictionary: ", infoDictionary)
        print("app Name: ", infoDictionary["CFBundleDisplayName"]!)
        print("app Version: ", infoDictionary["CFBundleShortVersionString"]!)
        print("app build: ", infoDictionary["CFBundleVersion"]!)
        
    }

    func printAllIPhoneInfo() -> Void {
        
        print(UIDevice.current)
        print("uniqueIdentifier: \(UIDevice.current.identifierForVendor!.uuidString)")
        print("name: \(UIDevice.current.name)")
        print("systemName: \(UIDevice.current.systemName)")
        print("syttemVersion: \(UIDevice.current.systemVersion)")
        print("model: \(UIDevice.current.model)")
        print("model name: \(UIDevice.current.modelName)")
        print("model modelIdentifier: \(UIDevice.current.modelIdentifier)")
        print("localizedModel: \(UIDevice.current.localizedModel)")
        
        
        let infoDictionary = Bundle.main.infoDictionary!
        
        print("app Name: \(infoDictionary["CFBundleDisplayName"]!)")
        print("app Version: \(infoDictionary["CFBundleShortVersionString"]!)")
        print("app build: \(infoDictionary["CFBundleVersion"]!)")

    }

        
}

